<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-4-4
 * Time: 上午11:45
 */

namespace common\models;


/**
 * Class NbrbCustomAdmittance
 * @package common\models
 *
 * @property NbrbRequestLog $nbrbRequestLog
 * @property NbrbUnderwriteApply $nbrbUnderwriteApply
 * @property NbrbAdditionalRecordApply $nbrbAdditionalRecordApply
 * @property NbrbPledgeInfoNotice $nbrbPledgeInfoNotice
 * @property NbrbFinalAuditApply $nbrbFinalAuditApply
 * @property NbrbLoanApply $nbrbLoanApply
 */
class NbrbCustomAdmittance extends \common\models\base\NbrbCustomAdmittance
{
    const STATUS_ACTIVE = 10;

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbRequestLog()
    {
        return $this->hasOne(NbrbRequestLog::className(), ['request_seq_no' => 'request_seq_no']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbUnderwriteApply()
    {
        return $this->hasOne(NbrbUnderwriteApply::className(), ['req_order_number' => 'order_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbAdditionalRecordApply()
    {
        return $this->hasOne(NbrbAdditionalRecordApply::className(), ['req_order_number' => 'order_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbPledgeInfoNotice()
    {
        return $this->hasOne(NbrbPledgeInfoNotice::className(), ['req_order_number' => 'order_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbFinalAuditApply()
    {
        return $this->hasOne(NbrbFinalAuditApply::className(), ['req_order_number' => 'order_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbLoanApply()
    {
        return $this->hasOne(NbrbLoanApply::className(), ['req_order_number' => 'order_number']);
    }
}